package com.ygqh.baby.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygqh.baby.mapper.YgReturnOrderLogMapper;
import com.ygqh.baby.po.YgReturnOrderLog;
import com.ygqh.baby.po.YgReturnOrderLogExample;
import com.ygqh.baby.service.YgReturnOrderLogService;

@Service
public class YgReturnOrderLogServiceImpl implements YgReturnOrderLogService {
	
	@Autowired
	private YgReturnOrderLogMapper ygReturnOrderLogMapper;

	@Override
	public List<YgReturnOrderLog> findReturnScheduleList(String returnCode) {
		YgReturnOrderLogExample example = new YgReturnOrderLogExample();
		example.createCriteria().andReturnCodeEqualTo(returnCode);
		example.setOrderByClause("create_time desc");
		return ygReturnOrderLogMapper.selectByExample(example);
	}

}
